<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            perspective: 300px;
            margin: 50px auto;
            width: 200px;
            height: 100px;
        }

        div:hover img {
            transform: rotate3d(1, 1, 2, 60deg);
        }
    </style>
</head>

<body>
    <div>
        <img src="img/logo.png" alt="">
    </div>
</body>

</html>